<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hospital Information System</title>
<link rel="stylesheet" href="/frame.css" />
<link rel="stylesheet" href="/table.css" />
</head>
<body>
	<div class="header"> 
		<h1 class="header">Hospital Information System<br />你好，{% ifequal whatfor "personal_info" %} {{ username }} {% endifequal %}</h1> 
	</div>
	<div class="navigator">
		<ul id="nav-global"> 
			<li id="nav-personal_info"><a href="/doctor/{{ username }}">个人信息</a></li>
			<li id="nav-medi_info"><a href="/medicine">药品信息</a></li>
			<li id="nav-dept_info"><a href="/department">部门信息</a></li>
			<li id="nav-dept_info"><a href="/diagnose">诊单创建</a></li>
			<li id="nav-dept_info"><a href="/doctor/{{ username }}/view_diagnosis">查看诊单</a></li>
			<li id="nav-dept_info"><a href="/appointment">预约创建</a></li>
			<li id="nav-dept_info"><a href="/doctor/{{ username }}/view_diagnosis">查看预约</a></li>
			<li id="logout"><a href="/logout">退出登录</a></li>
		</ul> 
	</div>
	<div class="content">
		{% ifequal whatfor "department" %}
			{% include "HIS/department.html" %}
		{% endifequal %}
		{% ifequal whatfor "medicine" %}
			{% include "HIS/medicine.html" %}
		{% endifequal %}
		{% ifequal whatfor "view_diagnosis" %}
			{% include "HIS/view_diagnosis.html" %}
		{% endifequal %}
		{% ifequal whatfor "view_appointment" %}
			{% include "HIS/view_appointment.html" %}
		{% endifequal %}
		{% ifequal whatfor "diagnose" %}
			<form action="/diagnose" method="POST">
				<table>
					{{ diagnosis.as_table }}
				</table>
				<p><input type="submit" value="Submit"></p>
			</form>
		{% endifequal %}
		{% ifequal whatfor "personal_info" %}
			<form action="." method="POST">
				<table>
					{{ personal_info.as_table }}
				</table>
				<p><input type="submit" value="Submit"></p>
			</form>
		{% endifequal %}
		{% ifequal whatfor "appointment" %}
			<form action="/appointment" method="POST">
				<table>
					{{ appointment.as_table }}
				</table>
				<p><input type="submit" value="Submit"></p>
			</form>
		{% endifequal %}
	</div>
	<div class="footer">
		{% include "HIS/footer.html" %}
	</div>
</body>
</html>